package com.lsa.iview.unsorted;

import java.util.Arrays;

import junit.framework.TestCase;

public class CountChangeTest extends TestCase {
	public void test() {
		assertEquals(3, CountChange.countChange(4, Arrays.asList(1,2)));
		assertEquals(1022, CountChange.countChange(300, Arrays.asList(5,10,20,50,100,200,500)));
		assertEquals(0, CountChange.countChange(301, Arrays.asList(5,10,20,50,100,200,500)));
		assertEquals(1022, CountChange.countChange(300, Arrays.asList(500,5,50,100,20,200,10)));
	}
}
